//
//  PointView.swift
//  TinyShopKeeper
//
//  Created by rimi on 16/6/6.
//  Copyright © 2016年 yuying. All rights reserved.
//

import UIKit

class PointView: UIView {

    //红色的button
    var pointButton:UIButton = {
        let button = UIButton(type: UIButtonType.Custom)
        button.frame = CGRectMake((HourIncomeView_Width - PointButton_Width)/2,0,PointButton_Width,PointButton_Width)
        button.setBackgroundImage(imageByName("redPoint.png"), forState: UIControlState.Normal)
        button.setBackgroundImage(imageByName("bluePoint.png"), forState: UIControlState.Selected)
        button.userInteractionEnabled = false//交互事件关闭
        return button
    }()
    
    
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        addSubview(pointButton)
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}


